package com.rchat.pocmini.activity.searchgroup;

import com.aso.common.http.delegate.HttpCallbackImpl;
import com.rchat.pocmini.bean.SearchGroupBean;
import com.rchat.pocmini.common.mvp.BaseModel;
import com.rchat.pocmini.common.mvp.BasePresenter;
import com.rchat.pocmini.common.mvp.BaseView;

/**
 * Created by ljd on 2017/7/31.
 */

public interface SearchGroupContract {

    interface View extends BaseView {
        void notifyDataChanged(SearchGroupBean searchGroupBean);
    }

    abstract class Presenter extends BasePresenter<SearchGroupContract.View, SearchGroupContract.Model> {
        /**
         * @param groupName 群组搜索内容
         */
        abstract void searchGroup(String groupName);
    }

    interface Model extends BaseModel {
        /**
         * @param groupName 群组搜索内容
         * @param callback
         */
        void searchGroup(String groupName, HttpCallbackImpl callback);
    }
}
